Security exception in Twitterizer [closed]

Posted by Raghu on Pro Webmasters See other posts from Pro Webmasters or by Raghu
Published on 2011-02-08T13:59:30Z Indexed on 2011/02/08 15:34 UTC
Read the original article Hit count: 461

Filed under:

Possible Duplicate:
Security exception in Twitterizer

Hi,

We are using Twitterizer for Twitter integration to get the Tweets details. When making call to the method OAuthUtility.GetRequestToken, following exception is coming.

System.Security.SecurityException: Request for the permission of type 'System.Net.WebPermission, System, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089' failed.

When the application is hosted on IIS 5, the application works fine and the above error is coming only when the application is hosted in IIS 7 on Windows 2008 R2. and the method OAuthUtility.GetRequestToken throws above exception. It seems the issue is something with code access security. Please suggest what kind of permissions should be given to fix the security exception. The application has the Full Trust and I have even tried by registering the Twitterizer DLL in GAC and still the same error is coming. I am not sure what makes the difference between IIS 5 and IIS 7 with regards to code access security to cause that exception.

Any help would be greatly appreciated.

Thanks in advance.

Regards, Raghu

© Pro Webmasters or respective owner

Related posts about twitter-integration